package org.example.model;

import java.time.LocalDateTime;

public class Message {
    private String type;
    private String content;
    private String senderUserId;
    private String targetUserId;
    private LocalDateTime timestamp;
    private String messageId;

    public Message() {
        this.timestamp = LocalDateTime.now();
    }

    public Message(String type, String content, String senderUserId) {
        this();
        this.type = type;
        this.content = content;
        this.senderUserId = senderUserId;
    }

    // Getters and Setters
    public String getType() { return type; }
    public void setType(String type) { this.type = type; }

    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }

    public String getSenderUserId() { return senderUserId; }
    public void setSenderUserId(String senderUserId) { this.senderUserId = senderUserId; }

    public String getTargetUserId() { return targetUserId; }
    public void setTargetUserId(String targetUserId) { this.targetUserId = targetUserId; }

    public LocalDateTime getTimestamp() { return timestamp; }
    public void setTimestamp(LocalDateTime timestamp) { this.timestamp = timestamp; }

    public String getMessageId() { return messageId; }
    public void setMessageId(String messageId) { this.messageId = messageId; }
}